package org.kzwl.comm.pojo.dto.book;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.kzwl.comm.advice.Consts;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@ApiModel("图书DTO")
public class BookDTO {

    @ApiModelProperty("图书编号")
    private Integer cuBookId;

    @ApiModelProperty("图书名称")
    private String cuBookName;

    @ApiModelProperty("出版社")
    private String cuBookPress;

    @ApiModelProperty("创建时间")
    private LocalDateTime cuBookCreateDate;

    @ApiModelProperty("图示分类")
    private Integer cuBookCategory;

    @ApiModelProperty("作者")
    private String cuBookAuthor;

    @ApiModelProperty("略缩图")
    private String cuBookAbbreviation;

    public void setCuBookAbbreviation(String cuBookAbbreviation) {
        this.cuBookAbbreviation = Consts.MyConsts.IMGURLPATH+cuBookAbbreviation;
    }

    @ApiModelProperty("绘本角标 0-无 1-热门")
    private Integer cuBookLabel;

    @ApiModelProperty("人气")
    private String cuBookPopularity;

    @ApiModelProperty("评分")
    private BigDecimal cuBookScore;

    @ApiModelProperty("简介")
    private String cuBookIntroduce;

    @ApiModelProperty("摘要")
    private String cuBookAbstract;

    @ApiModelProperty("跳转方式 0-内部 1-外部 2-视频 3-音频")
    private Integer cuBookType;

    @ApiModelProperty("路径")
    private String cuBookAddress;

    @ApiModelProperty("推荐状态")
    private String cuBookRecommend;

    @ApiModelProperty("最后修改时间")
    private String cuBookUpdateDate;

    @ApiModelProperty("分类")
    private String cuCategoryName;
}
